<script type="text/javascript">
$(document).ready(function() {
$('#stats').load('/ajax/stats/{{profile.id}}');
$("#nodes").fancybox({
ajax : {
				    	type	: "GET",
}
});
$("#results").fancybox({
ajax : {
				    	type	: "GET",
}
});
$("#datasets").fancybox({
ajax : {
				    	type	: "GET",
}
});
$("#key").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});
});
</script>
<h2>Your stats, <u>{{profile.name}}</u><a href="/ajax/stats/{{profile.id}}" onclick="$('#stats').load('/ajax/stats/{{profile.id}}');return false;"><img width="30" src="/static/img/refresh.png" /></a></h2>
<div id="stats"></div>
<a id="key" href="#inlinekey" title="Key for registering new nodes">The key</a>
| <a href="/ajax/nodes/{{profile.id}}" id="nodes">Nodes</a>
| <a href="/ajax/datasets/{{profile.id}}" id="datasets">Datasets</a>
| <a href="/ajax/results/{{profile.id}}" id="results">Results</a>
| <a href="/create/ticket">+</a>
<div style="display:none"><div id="inlinekey">{{profile.get_key}}</div></div>